import { IToolTipItem } from "../../../../com/mui/manager/IToolTipItem";
import { GlobalClass } from "../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../resource/ImagesConst";
import { ToolTipsManager } from "../../../../com/mui/manager/ToolTipsManager";
import { Language } from "../../../../extend/language/Language";
import { Cache } from "../../cache/Cache";
import { HTMLUtil } from "../../../../com/gengine/utils/HTMLUtil";
//class WorldExBuff
    
    export  class WorldExBuff /* flash.display.Sprite */ implements IToolTipItem
    {
        constructor()
        {
            
            this.initView();
            return;
        }

        /* internal  */initView(): void
        {
            this._bmBuff = new Object /* flash.display.Bitmap */();
            this._bmBuff.bitmapData = GlobalClass.getBitmapData(ImagesConst.WorldExBuff);
            this.addChild(this._bmBuff);
            ToolTipsManager.register(this);
            return;
        }

        public get toolTipData()
        {
            var loc1=Language.getString(30189);
            var loc2=Language.getString(30185) + Cache.instance.role.curWorldLevel;
            var loc3=Language.getString(30187) + Cache.instance.role.getWorldEx();
            this._toolTipData = HTMLUtil.addColor(loc1, "#00ff00") + "<br>" + HTMLUtil.addColor(loc2 + "<br>" + loc3, "#ff9900");
            return this._toolTipData;
        }

        public set toolTipData(arg1)
        {
            return;
        }

        /* internal */ /* var */_bmBuff: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_toolTipData;
    }
